﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Ketnoidulieu
{
    public partial class laydanhsachsinhvientheothamso : Form
    {
        public laydanhsachsinhvientheothamso()
        {
            InitializeComponent();
        }

        clssQLDiem obj = new clssQLDiem();

        private void btntimtheoma_Click(object sender, EventArgs e)
        {
            DataSet ds=new DataSet();
            ds = obj.laydanhsach_theothamso("diemtheomasinhvien", txtmasv.Text, "@masv");
            dtgv1.DataSource = ds.Tables[0];
        }

        private void btntimtheoten_Click(object sender, EventArgs e)
        {
            DataSet ds = new DataSet();
            ds = obj.laydanhsach_theothamso("diemtheotensinhvien", txttensv.Text, "@tensv");
            dtgv1.DataSource = ds.Tables[0];
        }

        private void btntinhdtb_Click(object sender, EventArgs e)
        {
            DataSet ds = new DataSet();
            ds = obj.laydanhsach_theothamso("diemtrungbinhsinhvien", txtdiemtbtheoma.Text, "@masv");
            dtgv1.DataSource = ds.Tables[0];
        }

    }
}
